/**
 * Created by Wenwu on 7/19/2016.
 */

require.config({
        waitSeconds: 30,
        baseUrl: 'js',
        paths: {
                'jquery': '../lib/jquery/dist/jquery.min',
                'vue': '../lib/vue/dist/vue.min',
                'wx': 'http://res.wx.qq.com/open/js/jweixin-1.0.0',
                'vueSwipe': '../lib/vue-swiper/dist/vue-swipe',

                'moment': '../lib/moment/min/moment.min',

                'common': '{{jsPath "common/common"}}',
                'config': '{{jsPath "common/config"}}',
                'spinner': '{{jsPath "common/spinner"}}',
                'ajax': '{{jsPath "common/ajax"}}',
                'utilities': '{{jsPath "common/utilities"}}',
                'storeToaster': '{{jsPath "common/store-toaster"}}',
                'auth_dialog': '{{jsPath "common/auth_dialog"}}',
                'forbidden': '{{jsPath "common/forbidden"}}',

                'ajaxFileUpload': '{{jsPath "common/jquery.ajaxfileupload"}}',

                'imageTool': '{{jsPath "common/ImageTool"}}',

                // 首页
                'index': '{{jsPath "app/index"}}',
                'index_register': '{{jsPath "app/index_register"}}',
                'phone_bind': '{{jsPath "app/phone_bind"}}',
                'activity_photo': '{{jsPath "app/activity_photo"}}',
                'activity_photo_detail': '{{jsPath "app/activity_photo_detail"}}',
                'activity_base': '{{jsPath "app/activity_base"}}',
                'marriage_class': '{{jsPath "app/marriage_class"}}',
                'activity_base_detail': '{{jsPath "app/activity_base_detail"}}',
                'activity_business': '{{jsPath "app/activity_business"}}',
                'activity_business_detail': '{{jsPath "app/activity_business_detail"}}',
                //爱情会客厅
                'room': '{{jsPath "app/room"}}',
                // 活动
                'activity_list': '{{jsPath "app/activity_list"}}',
                'activity_detail': '{{jsPath "app/activity_detail"}}',
                // 交友
                'friend_index': '{{jsPath "app/friend_index"}}',
                'friend_detail': '{{jsPath "app/friend_detail"}}',
                //其他报名
                'enroll_detail': '{{jsPath "app/enroll_detail"}}',
                'enroll_activity': '{{jsPath "app/enroll_activity"}}',
                'enroll_list': '{{jsPath "app/enroll_list"}}',
                'enroll_sign': '{{jsPath "app/enroll_sign"}}',
                'enroll_login': '{{jsPath "app/enroll_login"}}',
                'enroll_index': '{{jsPath "app/enroll_index"}}',
                'enroll_msglist': '{{jsPath "app/enroll_msglist"}}',
                'enroll_basicInfo': '{{jsPath "app/enroll_basicInfo"}}',
                // 贴吧
                'tieba_theme_lists': '{{jsPath "app/tieba_theme_lists"}}',
                'tieba': '{{jsPath "app/tieba"}}',
                'tieba_detail': '{{jsPath "app/tieba_detail"}}',
                // 信息公告
                'info_list': '{{jsPath "app/info_list"}}',
                'info_detail': '{{jsPath "app/info_detail"}}',
                // 心情微博
                'uc_mymood': '{{jsPath "app/uc_mymood"}}',
                'mood': '{{jsPath "app/mood"}}',
                // 心情发布
                'publish': '{{jsPath "app/publish"}}',
                // 认证
                'auth': '{{jsPath "app/auth"}}',
                // 排行榜
                'uc_activeRank': '{{jsPath "app/uc_activeRank"}}',
                'enroll_activeRank': '{{jsPath "app/enroll_activeRank"}}',


                //个人中心
                'uc_index': '{{jsPath "app/uc_index"}}',
                'uc_sign': '{{jsPath "app/uc_sign"}}',
                //查看资料
                'uc_profile': '{{jsPath "app/uc_profile"}}',
                //编辑内心独白
                'uc_myInner': '{{jsPath "app/uc_myInner"}}',
                //基本资料
                'uc_basicInfo': '{{jsPath "app/uc_basicInfo"}}',
                //基本资料
                'uc_basicInfos': '{{jsPath "app/uc_basicInfos"}}',
                //我的报名
                'uc_myenroll': '{{jsPath "app/uc_myenroll"}}',
                //个人标签
                'uc_mytags': '{{jsPath "app/uc_mytags"}}',
                //兴趣爱好
                'uc_hobby': '{{jsPath "app/uc_hobby"}}',
                //用户列表
                'uc_userlist': '{{jsPath "app/uc_userlist"}}',
                //择偶条件
                'uc_mate_condition': '{{jsPath "app/uc_mate_condition"}}',
                //性格外貌
                'uc_outside': '{{jsPath "app/uc_outside"}}',
                //工作学习
                'uc_work': '{{jsPath "app/uc_work"}}',
                //生活描述
                'uc_lives': '{{jsPath "app/uc_lives"}}',
                //我的相册
                'uc_myalbum': '{{jsPath "app/uc_myalbum"}}',
                //会员相册
                'friendalbum': '{{jsPath "app/friendalbum"}}',
                //我的视频
                'uc_myvideo': '{{jsPath "app/uc_myvideo"}}',
                //会员视频
                'friendvideo': '{{jsPath "app/friendvideo"}}',
                //消息列表
                'uc_message': '{{jsPath "app/uc_message"}}',
                //站内消息列表
                'uc_site_message': '{{jsPath "app/uc_site_message"}}',
                //修改密码
                'uc_update_pass': '{{jsPath "app/uc_update_pass"}}',
                //帐号申诉
                'uc_account_appeal': '{{jsPath "app/uc_account_appeal"}}',
                //黑名单
                'uc_blacklist': '{{jsPath "app/uc_blacklist"}}',
                //每日速配
                'uc_pairlist': '{{jsPath "app/uc_pairlist"}}',
                //地区选择
                'add_page': '{{jsPath "app/add_page"}}',
                //地区选择
                'map': '{{jsPath "app/map"}}'
        },
        shim: {
                'ajax': ['spinner', 'auth_dialog'],
                'storeToaster': ['jquery'],
                'vueSwipe': ['vue'],
                '': ['config', 'utilities', 'ajax'],
                'auth_dialog': ['jquery'],
                'forbidden': ['jquery'],
                'spinner': ['jquery'],
                'utilities': ['config', 'ajax'],

                'ajaxFileUpload': ['jquery'],

                // 首页
                'index': ['vue', 'utilities', 'common'],
                'index_register': ['vue', 'config', 'ajax', 'utilities'],
                'phone_bind': ['vue', 'config', 'ajax', 'utilities'],
                'activity_photo': ['vue', 'utilities'],
                'activity_photo_detail': ['vue', 'utilities'],
                'activity_base': ['vue', 'utilities'],
                'activity_base_detail': ['vue', 'utilities'],
                // 活动
                'activity_list': ['vue', 'utilities', 'common'],
                'activity_detail': ['vue', 'utilities'],
                //恋爱课堂
                'marriage_list': ['vue', 'utilities', 'common'],
                // 交友
                'friend_index': ['vue', 'utilities', 'common'],
                'friend_detail': ['vue', 'utilities'],
                'enroll_detail': ['vue', 'utilities'],
                // 贴吧
                'tieba_theme_lists': ['vue', 'utilities'],
                'tieba': ['vue', 'utilities'],
                'tieba_detail': ['vue', 'utilities'],
                // 信息公告详情
                'info_list': ['vue', 'utilities'],
                'info_detail': ['vue', 'utilities'],
                // 心情微博
                'uc_mymood': ['vue', 'utilities', 'common'],
                'mood': ['vue', 'utilities', 'common'],
                'publish': ['vue', 'utilities', 'common'],
                // 认证
                'auth': ['vue', 'utilities'],

                'uc_index': ['vue', 'config', 'ajax', 'utilities', 'common'],
                'uc_sign': ['vue', 'config', 'ajax', 'utilities'],
                'uc_profile': ['vue', 'config', 'ajax', 'utilities', 'ajaxFileUpload'],
                'enroll_sign': ['vue', 'config', 'ajax', 'utilities', 'ajaxFileUpload'],
                'enroll_index': ['vue', 'config', 'ajax', 'utilities', 'ajaxFileUpload'],
                'uc_myInner': ['vue', 'config', 'ajax', 'utilities'],
                'uc_basicInfo': ['vue', 'moment', 'config', 'ajax', 'utilities'],
                'uc_myenroll': ['vue', 'config', 'ajax', 'utilities'],
                'uc_mytags': ['vue', 'config', 'ajax', 'utilities'],
                'uc_hobby': ['vue', 'config', 'ajax', 'utilities'],
                'uc_userlist': ['vue', 'config', 'ajax', 'utilities'],
                'uc_mate_condition': ['vue', 'config', 'ajax', 'utilities'],
                'uc_outside': ['vue', 'config', 'ajax', 'utilities'],
                'uc_work': ['vue', 'config', 'ajax', 'utilities'],
                'uc_lives': ['vue', 'config', 'ajax', 'utilities'],
                'uc_myalbum': ['vue', 'config', 'ajax', 'utilities', 'jquery', 'ajaxFileUpload'],
                'friendalbum': ['vue', 'config', 'ajax', 'utilities', 'jquery', 'ajaxFileUpload'],
                'uc_myvideo': ['vue', 'config', 'ajax', 'utilities', 'jquery', 'ajaxFileUpload'],
                'friendvideo': ['vue', 'config', 'ajax', 'utilities', 'jquery', 'ajaxFileUpload'],
                'publish': ['vue', 'config', 'ajax', 'utilities', 'jquery', 'ajaxFileUpload'],
                'uc_message': ['vue', 'config', 'ajax', 'utilities'],
                'uc_site_message': ['vue', 'config', 'ajax', 'utilities'],
                'uc_update_pass': ['vue', 'config', 'ajax', 'utilities'],
                'uc_account_appeal': ['vue', 'config', 'ajax', 'utilities'],
                'uc_blacklist': ['vue', 'config', 'ajax', 'utilities'],
                'uc_pairlist': ['vue', 'config', 'ajax', 'utilities'],
                'add_page': ['vue', 'config', 'ajax', 'utilities']
        },
        deps: [app]
});